<?php
/*
 * Created on 04.01.2006
 *
 * 
 * Using sync token in multiframe application is only save, if form has name attribute.
 */

class xt_synctokenhiddenHandler 
{

    function startElement (phpinchains_parser_psp_PSPParser & $sender, $attrs)
    {
    	$form = $sender->topParent();
        $sender->appendCode('$out->write($actionform->syncTokenHidden('.$form['name'].'));'."\n");
    }
    
    function endElement (& $sender)
    {
    }

}

?>